/**
 * add category
 */
function doAddCategory() {
	var err = '';
	var catname = document.getElementById('catname').value;
	var caturl = document.getElementById('caturl').value;
	
	if(catname == '') {
		err += '请输入栏目名 \n';
	}
	if(caturl == '') {
		err += '请输入栏目地址 \n';
	}
	
	if(err != '') {
		alert(err);
	} else {
		window.f1.submit();
	}
}